home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-10-28 | 5.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 34 | 3a 32 30 3a 35 36 20 31 |an 14 04|:20:56 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 64 69 66 66 2e 65 |19.0/lis|p/diff.e|
|00000070| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|00000080| 69 6f 6e 20 31 39 2e 33 | 30 2e 37 30 2e 36 2e 0a |ion 19.3|0.70.6..|
|00000090| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000a0| 73 69 6f 6e 20 46 53 46 | 20 32 2e 31 30 0a 3b 3b |sion FSF| 2.10.;;|
|000000b0| 3b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 69 |; optimi|zation i|
|000000c0| 73 20 6f 6e 2e 0a 3b 3b | 3b 20 74 68 69 73 20 66 |s on..;;|; this f|
|000000d0| 69 6c 65 20 75 73 65 73 | 20 6f 70 63 6f 64 65 73 |ile uses| opcodes|
|000000e0| 20 77 68 69 63 68 20 64 | 6f 20 6e 6f 74 20 65 78 | which d|o not ex|
|000000f0| 69 73 74 20 69 6e 20 45 | 6d 61 63 73 20 31 38 2e |ist in E|macs 18.|
|00000100| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000110| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000120| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000130| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000140| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000150| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|00000160| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|00000170| 2d 76 65 72 73 69 6f 6e | 20 22 31 39 2e 32 39 22 |-version| "19.29"|
|00000180| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|00000190| 60 64 69 66 66 2e 65 6c | 27 20 77 61 73 20 63 6f |`diff.el|' was co|
|000001a0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001b0| 20 31 39 2e 32 39 20 6f | 72 20 6c 61 74 65 72 22 | 19.29 o|r later"|
|000001c0| 29 29 0a 0a 0a 28 72 65 | 71 75 69 72 65 20 28 71 |))...(re|quire (q|
|000001d0| 75 6f 74 65 20 63 6f 6d | 70 69 6c 65 29 29 0a 23 |uote com|pile)).#|
|000001e0| 40 37 35 20 2a 41 20 73 | 74 72 69 6e 67 20 6f 72 |@75 *A s|tring or|
|000001f0| 20 6c 69 73 74 20 6f 66 | 20 73 74 72 69 6e 67 73 | list of| strings|
|00000200| 20 73 70 65 63 69 66 79 | 69 6e 67 20 73 77 69 74 | specify|ing swit|
|00000210| 63 68 65 73 20 74 6f 20 | 62 65 20 62 65 20 70 61 |ches to |be be pa|
|00000220| 73 73 65 64 20 74 6f 20 | 64 69 66 66 2e 1f 0a 28 |ssed to |diff...(|
|00000230| 64 65 66 76 61 72 20 64 | 69 66 66 2d 73 77 69 74 |defvar d|iff-swit|
|00000240| 63 68 65 73 20 22 2d 63 | 22 20 28 23 24 20 2e 20 |ches "-c|" (#$ . |
|00000250| 2d 34 38 34 29 29 0a 23 | 40 33 34 20 2a 54 68 65 |-484)).#|@34 *The|
|00000260| 20 63 6f 6d 6d 61 6e 64 | 20 74 6f 20 75 73 65 20 | command| to use |
|00000270| 74 6f 20 72 75 6e 20 64 | 69 66 66 2e 1f 0a 28 64 |to run d|iff...(d|
|00000280| 65 66 76 61 72 20 64 69 | 66 66 2d 63 6f 6d 6d 61 |efvar di|ff-comma|
|00000290| 6e 64 20 22 64 69 66 66 | 22 20 28 23 24 20 2e 20 |nd "diff|" (#$ . |
|000002a0| 2d 36 30 34 29 29 0a 23 | 40 33 32 36 20 41 6c 69 |-604)).#|@326 Ali|
|000002b0| 73 74 20 28 52 45 47 45 | 58 50 20 4f 4c 44 2d 49 |st (REGE|XP OLD-I|
|000002c0| 44 58 20 4e 45 57 2d 49 | 44 58 29 20 6f 66 20 72 |DX NEW-I|DX) of r|
|000002d0| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|000002e0| 6e 73 20 74 6f 20 6d 61 | 74 63 68 20 64 69 66 66 |ns to ma|tch diff|
|000002f0| 65 72 65 6e 63 65 0a 73 | 65 63 74 69 6f 6e 73 20 |erence.s|ections |
|00000300| 69 6e 20 5c 5b 64 69 66 | 66 5d 20 6f 75 74 70 75 |in \[dif|f] outpu|
|00000310| 74 2e 20 20 49 66 20 52 | 45 47 45 58 50 20 6d 61 |t. If R|EGEXP ma|
|00000320| 74 63 68 65 73 2c 20 74 | 68 65 20 4f 4c 44 2d 49 |tches, t|he OLD-I|
|00000330| 44 58 27 74 68 0a 73 75 | 62 65 78 70 72 65 73 73 |DX'th.su|bexpress|
|00000340| 69 6f 6e 20 67 69 76 65 | 73 20 74 68 65 20 6c 69 |ion give|s the li|
|00000350| 6e 65 20 6e 75 6d 62 65 | 72 20 69 6e 20 74 68 65 |ne numbe|r in the|
|00000360| 20 6f 6c 64 20 66 69 6c | 65 2c 20 61 6e 64 20 4e | old fil|e, and N|
|00000370| 45 57 2d 49 44 58 27 74 | 68 0a 73 75 62 65 78 70 |EW-IDX't|h.subexp|
|00000380| 72 65 73 73 69 6f 6e 20 | 67 69 76 65 73 20 74 68 |ression |gives th|
|00000390| 65 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 20 69 6e |e line n|umber in|
|000003a0| 20 74 68 65 20 6e 65 77 | 20 66 69 6c 65 2e 20 20 | the new| file. |
|000003b0| 49 66 20 4f 4c 44 2d 49 | 44 58 20 6f 72 20 4e 45 |If OLD-I|DX or NE|
|000003c0| 57 2d 49 44 58 0a 69 73 | 20 6e 69 6c 2c 20 52 45 |W-IDX.is| nil, RE|
|000003d0| 47 45 58 50 20 6d 61 74 | 63 68 65 73 20 6f 6e 6c |GEXP mat|ches onl|
|000003e0| 79 20 68 61 6c 66 20 61 | 20 73 65 63 74 69 6f 6e |y half a| section|
|000003f0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 64 69 66 66 2d |...(defv|ar diff-|
|00000400| 72 65 67 65 78 70 2d 61 | 6c 69 73 74 20 28 71 75 |regexp-a|list (qu|
|00000410| 6f 74 65 20 28 28 22 5e | 40 40 20 2d 5c 5c 28 5b |ote (("^|@@ -\\([|
|00000420| 30 2d 39 5d 2b 5c 5c 29 | 2c 5b 30 2d 39 5d 2b 20 |0-9]+\\)|,[0-9]+ |
|00000430| 5c 5c 2b 5c 5c 28 5b 30 | 2d 39 5d 2b 5c 5c 29 2c |\\+\\([0|-9]+\\),|
|00000440| 5b 30 2d 39 5d 2b 20 40 | 40 24 22 20 31 20 32 29 |[0-9]+ @|@$" 1 2)|
|00000450| 20 28 22 5e 5c 5c 2a 5c | 5c 2a 5c 5c 2a 20 5c 5c | ("^\\*\|\*\\* \\|
|00000460| 28 5b 30 2d 39 5d 2b 5c | 5c 29 2c 5b 30 2d 39 5d |([0-9]+\|\),[0-9]|
|00000470| 2b 20 5c 5c 2a 5c 5c 2a | 5c 5c 2a 5c 5c 2a 24 22 |+ \\*\\*|\\*\\*$"|
|00000480| 20 31 20 6e 69 6c 29 20 | 28 22 5e 2d 2d 2d 20 5c | 1 nil) |("^--- \|
|00000490| 5c 28 5b 30 2d 39 5d 2b | 5c 5c 29 2c 5b 30 2d 39 |\([0-9]+|\\),[0-9|
|000004a0| 5d 2b 20 2d 2d 2d 2d 24 | 22 20 6e 69 6c 20 31 29 |]+ ----$|" nil 1)|
|000004b0| 20 28 22 5e 5c 5c 28 5b | 30 2d 39 5d 2b 5c 5c 29 | ("^\\([|0-9]+\\)|
|000004c0| 5c 5c 28 2c 5b 30 2d 39 | 5d 2b 5c 5c 29 3f 5b 61 |\\(,[0-9|]+\\)?[a|
|000004d0| 64 63 5d 5c 5c 28 5b 30 | 2d 39 5d 2b 5c 5c 29 5c |dc]\\([0|-9]+\\)\|
|000004e0| 5c 28 2c 5b 30 2d 39 5d | 2b 5c 5c 29 3f 24 22 20 |\(,[0-9]|+\\)?$" |
|000004f0| 31 20 33 29 20 28 22 5e | 5c 5c 28 5b 30 2d 39 5d |1 3) ("^|\\([0-9]|
|00000500| 2b 5c 5c 29 5c 5c 28 2c | 5b 30 2d 39 5d 2b 5c 5c |+\\)\\(,|[0-9]+\\|
|00000510| 29 3f 5b 61 64 63 5d 24 | 22 20 31 29 20 28 22 5e |)?[adc]$|" 1) ("^|
|00000520| 5b 61 64 63 5d 5c 5c 28 | 5b 30 2d 39 5d 2b 5c 5c |[adc]\\(|[0-9]+\\|
|00000530| 29 5c 5c 28 20 5b 30 2d | 39 5d 2b 5c 5c 29 3f 24 |)\\( [0-|9]+\\)?$|
|00000540| 22 20 31 29 29 29 20 28 | 23 24 20 2e 20 36 38 35 |" 1))) (|#$ . 685|
|00000550| 29 29 0a 23 40 36 31 20 | 54 68 69 73 20 69 73 20 |)).#@61 |This is |
|00000560| 74 68 65 20 6f 6c 64 20 | 66 69 6c 65 20 6e 61 6d |the old |file nam|
|00000570| 65 20 69 6e 20 74 68 65 | 20 63 6f 6d 70 61 72 69 |e in the| compari|
|00000580| 73 6f 6e 20 69 6e 20 74 | 68 69 73 20 62 75 66 66 |son in t|his buff|
|00000590| 65 72 2e 1f 0a 28 64 65 | 66 76 61 72 20 64 69 66 |er...(de|fvar dif|
|000005a0| 66 2d 6f 6c 64 2d 66 69 | 6c 65 20 6e 69 6c 20 28 |f-old-fi|le nil (|
|000005b0| 23 24 20 2e 20 31 33 36 | 38 29 29 0a 23 40 36 31 |#$ . 136|8)).#@61|
|000005c0| 20 54 68 69 73 20 69 73 | 20 74 68 65 20 6e 65 77 | This is| the new|
|000005d0| 20 66 69 6c 65 20 6e 61 | 6d 65 20 69 6e 20 74 68 | file na|me in th|
|000005e0| 65 20 63 6f 6d 70 61 72 | 69 73 6f 6e 20 69 6e 20 |e compar|ison in |
|000005f0| 74 68 69 73 20 62 75 66 | 66 65 72 2e 1f 0a 28 64 |this buf|fer...(d|
|00000600| 65 66 76 61 72 20 64 69 | 66 66 2d 6e 65 77 2d 66 |efvar di|ff-new-f|
|00000610| 69 6c 65 20 6e 69 6c 20 | 28 23 24 20 2e 20 31 34 |ile nil |(#$ . 14|
|00000620| 37 33 29 29 0a 23 40 36 | 38 20 54 68 69 73 20 69 |73)).#@6|8 This i|
|00000630| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 |s the na|me of a |
|00000640| 74 65 6d 70 20 66 69 6c | 65 20 74 6f 20 62 65 20 |temp fil|e to be |
|00000650| 64 65 6c 65 74 65 64 20 | 61 66 74 65 72 20 64 69 |deleted |after di|
|00000660| 66 66 20 66 69 6e 69 73 | 68 65 73 2e 1f 0a 28 64 |ff finis|hes...(d|
|00000670| 65 66 76 61 72 20 64 69 | 66 66 2d 6f 6c 64 2d 74 |efvar di|ff-old-t|
|00000680| 65 6d 70 2d 66 69 6c 65 | 20 6e 69 6c 20 28 23 24 |emp-file| nil (#$|
|00000690| 20 2e 20 31 35 37 38 29 | 29 0a 23 40 36 38 20 54 | . 1578)|).#@68 T|
|000006a0| 68 69 73 20 69 73 20 74 | 68 65 20 6e 61 6d 65 20 |his is t|he name |
|000006b0| 6f 66 20 61 20 74 65 6d | 70 20 66 69 6c 65 20 74 |of a tem|p file t|
|000006c0| 6f 20 62 65 20 64 65 6c | 65 74 65 64 20 61 66 74 |o be del|eted aft|
|000006d0| 65 72 20 64 69 66 66 20 | 66 69 6e 69 73 68 65 73 |er diff |finishes|
|000006e0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 64 69 66 66 2d |...(defv|ar diff-|
|000006f0| 6e 65 77 2d 74 65 6d 70 | 2d 66 69 6c 65 20 6e 69 |new-temp|-file ni|
|00000700| 6c 20 28 23 24 20 2e 20 | 31 36 39 35 29 29 0a 28 |l (#$ . |1695)).(|
|00000710| 64 65 66 61 6c 69 61 73 | 20 27 64 69 66 66 2d 70 |defalias| 'diff-p|
|00000720| 61 72 73 65 2d 64 69 66 | 66 65 72 65 6e 63 65 73 |arse-dif|ferences|
|00000730| 20 23 5b 28 6c 69 6d 69 | 74 2d 73 65 61 72 63 68 | #[(limi|t-search|
|00000740| 20 66 69 6e 64 2d 61 74 | 2d 6c 65 61 73 74 29 20 | find-at|-least) |
|00000750| 22 c0 11 c2 c3 21 88 5c | 66 83 0d 00 5c 66 62 88 |"....!.\|f...\fb.|
|00000760| c5 c6 0e 07 c8 23 c9 1e | 5c 6e cb cc 0e 07 5c 22 |.....#..|\n....\"|
|00000770| 29 cd c0 ce c0 1e 0f 1e | 10 1e 11 1e 12 1e 13 1e |).......|........|
|00000780| 14 0e 11 84 9e 00 d5 0e | 14 c0 d6 23 83 9e 00 0e |........|...#....|
|00000790| 13 89 16 0f 83 53 00 0e | 0f 40 40 94 84 53 00 0e |.....S..|.@@..S..|
|000007a0| 0f 41 89 16 0f 84 42 00 | 0e 0f 40 89 16 0f 41 40 |.A....B.|..@...A@|
|000007b0| 83 68 00 0e 12 0e 17 0e | 0f 41 40 5c 22 88 d8 0e |.h......|.A@\"...|
|000007c0| 0f 38 83 79 00 0e 12 0e | 19 d8 0e 0f 38 5c 22 88 |.8.y....|....8\".|
|000007d0| 0e 10 54 16 10 0e 1a 83 | 8b 00 0e 10 0e 1a 59 84 |..T.....|......Y.|
|000007e0| 97 00 0e 1b 83 2c 00 60 | 0e 1b 59 83 2c 00 d6 89 |.....,.`|..Y.,...|
|000007f0| 16 11 83 31 00 0e 11 83 | a8 00 60 14 82 aa 00 64 |...1....|..`....d|
|00000800| 14 c2 dc 21 88 2e 06 09 | 9f 89 11 87 22 20 5b 6e |...!....|...." [n|
|00000810| 69 6c 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 2d 65 |il compi|lation-e|
|00000820| 72 72 6f 72 2d 6c 69 73 | 74 20 6d 65 73 73 61 67 |rror-lis|t messag|
|00000830| 65 20 22 50 61 72 73 69 | 6e 67 20 64 69 66 66 65 |e "Parsi|ng diffe|
|00000840| 72 65 6e 63 65 73 2e 2e | 2e 22 20 63 6f 6d 70 69 |rences..|." compi|
|00000850| 6c 61 74 69 6f 6e 2d 70 | 61 72 73 69 6e 67 2d 65 |lation-p|arsing-e|
|00000860| 6e 64 20 6d 61 70 63 6f | 6e 63 61 74 20 23 5b 28 |nd mapco|ncat #[(|
|00000870| 65 6c 74 29 20 22 c0 09 | 40 c2 51 87 22 20 5b 22 |elt) "..|@.Q." ["|
|00000880| 5c 5c 28 22 20 65 6c 74 | 20 22 5c 5c 29 22 5d 20 |\\(" elt| "\\)"] |
|00000890| 33 5d 20 64 69 66 66 2d | 72 65 67 65 78 70 2d 61 |3] diff-|regexp-a|
|000008a0| 6c 69 73 74 20 22 5c 5c | 7c 22 20 31 20 73 75 62 |list "\\||" 1 sub|
|000008b0| 65 78 70 72 20 6d 61 70 | 63 61 72 20 23 5b 28 65 |expr map|car #[(e|
|000008c0| 6c 74 29 20 22 08 c1 c2 | 0b 41 5c 22 42 08 c4 0b |lt) "...|.A\"B...|
|000008d0| 40 21 5c 5c c5 5c 5c 10 | 87 22 20 5b 73 75 62 65 |@!\\.\\.|." [sube|
|000008e0| 78 70 72 20 6d 61 70 63 | 61 72 20 23 5b 28 6e 29 |xpr mapc|ar #[(n)|
|000008f0| 20 22 08 85 07 00 09 08 | 5c 5c 87 22 20 5b 6e 20 | "......|\\." [n |
|00000900| 73 75 62 65 78 70 72 5d | 20 32 5d 20 65 6c 74 20 |subexpr]| 2] elt |
|00000910| 63 6f 75 6e 74 2d 72 65 | 67 65 78 70 2d 67 72 6f |count-re|gexp-gro|
|00000920| 75 70 69 6e 67 73 20 31 | 5d 20 34 5d 20 23 5b 28 |upings 1|] 4] #[(|
|00000930| 66 69 6c 65 20 73 75 62 | 65 78 70 72 29 20 22 8a |file sub|expr) ".|
|00000940| 08 94 62 88 c1 79 88 c2 | 20 29 c3 08 94 08 95 7b |..b..y..| ).....{|
|00000950| 21 1c 8a c5 20 1e 06 c7 | 8e c8 0e 09 21 71 88 2a |!... ...|....!q.*|
|00000960| 8a ca 5c 66 21 88 c2 20 | 2b 42 0e 0b 42 89 16 0b |..\f!.. |+B..B...|
|00000970| 87 22 20 5b 73 75 62 65 | 78 70 72 20 30 20 70 6f |." [sube|xpr 0 po|
|00000980| 69 6e 74 2d 6d 61 72 6b | 65 72 20 73 74 72 69 6e |int-mark|er strin|
|00000990| 67 2d 74 6f 2d 69 6e 74 | 20 6c 69 6e 65 20 6d 61 |g-to-int| line ma|
|000009a0| 74 63 68 2d 64 61 74 61 | 20 6d 61 74 63 68 2d 64 |tch-data| match-d|
|000009b0| 61 74 61 20 28 28 73 74 | 6f 72 65 2d 6d 61 74 63 |ata ((st|ore-matc|
|000009c0| 68 2d 64 61 74 61 20 6d | 61 74 63 68 2d 64 61 74 |h-data m|atch-dat|
|000009d0| 61 29 29 20 66 69 6e 64 | 2d 66 69 6c 65 2d 6e 6f |a)) find|-file-no|
|000009e0| 73 65 6c 65 63 74 20 66 | 69 6c 65 20 67 6f 74 6f |select f|ile goto|
|000009f0| 2d 6c 69 6e 65 20 63 6f | 6d 70 69 6c 61 74 69 6f |-line co|mpilatio|
|00000a00| 6e 2d 65 72 72 6f 72 2d | 6c 69 73 74 5d 20 34 5d |n-error-|list] 4]|
|00000a10| 20 30 20 67 20 6e 75 6d | 2d 6c 6f 63 69 2d 66 6f | 0 g num|-loci-fo|
|00000a20| 75 6e 64 20 66 6f 75 6e | 64 2d 64 65 73 69 72 65 |und foun|d-desire|
|00000a30| 64 20 6e 65 77 2d 65 72 | 72 6f 72 20 67 72 6f 75 |d new-er|ror grou|
|00000a40| 70 73 20 72 65 67 65 78 | 70 20 72 65 2d 73 65 61 |ps regex|p re-sea|
|00000a50| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 74 20 64 69 |rch-forw|ard t di|
|00000a60| 66 66 2d 6f 6c 64 2d 66 | 69 6c 65 20 32 20 64 69 |ff-old-f|ile 2 di|
|00000a70| 66 66 2d 6e 65 77 2d 66 | 69 6c 65 20 66 69 6e 64 |ff-new-f|ile find|
|00000a80| 2d 61 74 2d 6c 65 61 73 | 74 20 6c 69 6d 69 74 2d |-at-leas|t limit-|
|00000a90| 73 65 61 72 63 68 20 22 | 50 61 72 73 69 6e 67 20 |search "|Parsing |
|00000aa0| 64 69 66 66 65 72 65 6e | 63 65 73 2e 2e 2e 64 6f |differen|ces...do|
|00000ab0| 6e 65 22 5d 20 37 5d 29 | 0a 23 40 32 32 32 20 46 |ne"] 7])|.#@222 F|
|00000ac0| 69 6e 64 20 61 6e 64 20 | 64 69 73 70 6c 61 79 20 |ind and |display |
|00000ad0| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |the diff|erences |
|00000ae0| 62 65 74 77 65 65 6e 20 | 4f 4c 44 20 61 6e 64 20 |between |OLD and |
|00000af0| 4e 45 57 20 66 69 6c 65 | 73 2e 0a 49 6e 74 65 72 |NEW file|s..Inter|
|00000b00| 61 63 74 69 76 65 6c 79 | 20 74 68 65 20 63 75 72 |actively| the cur|
|00000b10| 72 65 6e 74 20 62 75 66 | 66 65 72 27 73 20 66 69 |rent buf|fer's fi|
|00000b20| 6c 65 20 6e 61 6d 65 20 | 69 73 20 74 68 65 20 64 |le name |is the d|
|00000b30| 65 66 61 75 6c 74 20 66 | 6f 72 20 4e 45 57 0a 61 |efault f|or NEW.a|
|00000b40| 6e 64 20 61 20 62 61 63 | 6b 75 70 20 66 69 6c 65 |nd a bac|kup file|
|00000b50| 20 66 6f 72 20 4e 45 57 | 20 69 73 20 74 68 65 20 | for NEW| is the |
|00000b60| 64 65 66 61 75 6c 74 20 | 66 6f 72 20 4f 4c 44 2e |default |for OLD.|
|00000b70| 0a 57 69 74 68 20 70 72 | 65 66 69 78 20 61 72 67 |.With pr|efix arg|
|00000b80| 2c 20 70 72 6f 6d 70 74 | 20 66 6f 72 20 64 69 66 |, prompt| for dif|
|00000b90| 66 20 73 77 69 74 63 68 | 65 73 2e 1f 0a 28 64 65 |f switch|es...(de|
|00000ba0| 66 61 6c 69 61 73 20 27 | 64 69 66 66 20 23 5b 28 |falias '|diff #[(|
|00000bb0| 6f 6c 64 20 6e 65 77 20 | 26 6f 70 74 69 6f 6e 61 |old new |&optiona|
|00000bc0| 6c 20 73 77 69 74 63 68 | 65 73 29 20 22 c0 09 21 |l switch|es) "..!|
|00000bd0| 11 c0 5c 6e 21 12 c3 5c | 6e 21 c3 09 21 c4 1d 1e |..\n!..\|n!..!...|
|00000be0| 06 1e 07 c4 8e c8 c9 ca | 0e 0b 43 0e 5c 66 83 32 |........|..C.\f.2|
|00000bf0| 00 0e 5c 66 3a 83 2c 00 | 0e 5c 66 82 40 00 0e 5c |..\f:.,.|.\f.@..\|
|00000c00| 66 43 82 40 00 0e 0d 3a | 83 3d 00 0e 0d 82 40 00 |fC.@...:|.=....@.|
|00000c10| 0e 0d 43 0e 07 84 4a 00 | 0e 06 85 4f 00 ce 5c 6e |..C...J.|...O..\n|
|00000c20| ce 09 46 cf 0e 07 86 56 | 00 5c 6e 21 43 cf 0e 06 |..F....V|.\n!C...|
|00000c30| 86 5f 00 09 21 43 25 d0 | 23 1e 11 d2 0e 11 d3 d4 |._..!C%.|#.......|
|00000c40| d5 24 15 d6 0d 21 88 d7 | d8 21 d9 4c 88 d7 da 21 |.$...!..|.!.L...!|
|00000c50| 5c 6e 4c 88 d7 db 21 09 | 4c 88 d7 dc 21 0e 07 4c |\nL...!.|L...!..L|
|00000c60| 88 d7 dd 21 0e 06 4c 88 | d7 de 21 df 4c 88 0d 2d |...!..L.|..!.L..-|
|00000c70| 87 22 20 5b 65 78 70 61 | 6e 64 2d 66 69 6c 65 2d |." [expa|nd-file-|
|00000c80| 6e 61 6d 65 20 6e 65 77 | 20 6f 6c 64 20 66 69 6c |name new| old fil|
|00000c90| 65 2d 6c 6f 63 61 6c 2d | 63 6f 70 79 20 6e 69 6c |e-local-|copy nil|
|00000ca0| 20 62 75 66 20 6e 65 77 | 2d 61 6c 74 20 6f 6c 64 | buf new|-alt old|
|00000cb0| 2d 61 6c 74 20 6d 61 70 | 63 6f 6e 63 61 74 20 69 |-alt map|concat i|
|00000cc0| 64 65 6e 74 69 74 79 20 | 61 70 70 65 6e 64 20 64 |dentity |append d|
|00000cd0| 69 66 66 2d 63 6f 6d 6d | 61 6e 64 20 73 77 69 74 |iff-comm|and swit|
|00000ce0| 63 68 65 73 20 64 69 66 | 66 2d 73 77 69 74 63 68 |ches dif|f-switch|
|00000cf0| 65 73 20 22 2d 4c 22 20 | 73 68 65 6c 6c 2d 71 75 |es "-L" |shell-qu|
|00000d00| 6f 74 65 2d 61 72 67 75 | 6d 65 6e 74 20 22 20 22 |ote-argu|ment " "|
|00000d10| 20 63 6f 6d 6d 61 6e 64 | 20 63 6f 6d 70 69 6c 65 | command| compile|
|00000d20| 2d 69 6e 74 65 72 6e 61 | 6c 20 22 4e 6f 20 6d 6f |-interna|l "No mo|
|00000d30| 72 65 20 64 69 66 66 65 | 72 65 6e 63 65 73 22 20 |re diffe|rences" |
|00000d40| 22 44 69 66 66 22 20 64 | 69 66 66 2d 70 61 72 73 |"Diff" d|iff-pars|
|00000d50| 65 2d 64 69 66 66 65 72 | 65 6e 63 65 73 20 70 6f |e-differ|ences po|
|00000d60| 70 2d 74 6f 2d 62 75 66 | 66 65 72 20 6d 61 6b 65 |p-to-buf|fer make|
|00000d70| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 20 |-local-v|ariable |
|00000d80| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 2d 65 78 69 74 |compilat|ion-exit|
|00000d90| 2d 6d 65 73 73 61 67 65 | 2d 66 75 6e 63 74 69 6f |-message|-functio|
|00000da0| 6e 20 23 5b 28 73 74 61 | 74 75 73 20 63 6f 64 65 |n #[(sta|tus code|
|00000db0| 20 6d 73 67 29 20 22 08 | c1 3d 84 5c 6e 00 5c 6e | msg) ".|.=.\n.\n|
|00000dc0| 0b 42 87 0b c4 55 83 12 | 00 c5 87 0b c6 55 83 1a |.B...U..|.....U..|
|00000dd0| 00 c7 87 5c 6e 0b 42 87 | 22 20 5b 73 74 61 74 75 |...\n.B.|" [statu|
|00000de0| 73 20 65 78 69 74 20 6d | 73 67 20 63 6f 64 65 20 |s exit m|sg code |
|00000df0| 30 20 28 22 66 69 6e 69 | 73 68 65 64 20 28 6e 6f |0 ("fini|shed (no|
|00000e00| 20 64 69 66 66 65 72 65 | 6e 63 65 73 29 5c 6e 22 | differe|nces)\n"|
|00000e10| 20 2e 20 22 6e 6f 20 64 | 69 66 66 65 72 65 6e 63 | . "no d|ifferenc|
|00000e20| 65 73 22 29 20 31 20 28 | 22 66 69 6e 69 73 68 65 |es") 1 (|"finishe|
|00000e30| 64 5c 6e 22 20 2e 20 22 | 64 69 66 66 65 72 65 6e |d\n" . "|differen|
|00000e40| 63 65 73 20 66 6f 75 6e | 64 22 29 5d 20 32 5d 20 |ces foun|d")] 2] |
|00000e50| 64 69 66 66 2d 6f 6c 64 | 2d 66 69 6c 65 20 64 69 |diff-old|-file di|
|00000e60| 66 66 2d 6e 65 77 2d 66 | 69 6c 65 20 64 69 66 66 |ff-new-f|ile diff|
|00000e70| 2d 6f 6c 64 2d 74 65 6d | 70 2d 66 69 6c 65 20 64 |-old-tem|p-file d|
|00000e80| 69 66 66 2d 6e 65 77 2d | 74 65 6d 70 2d 66 69 6c |iff-new-|temp-fil|
|00000e90| 65 20 63 6f 6d 70 69 6c | 61 74 69 6f 6e 2d 66 69 |e compil|ation-fi|
|00000ea0| 6e 69 73 68 2d 66 75 6e | 63 74 69 6f 6e 20 23 5b |nish-fun|ction #[|
|00000eb0| 28 62 75 66 66 20 6d 73 | 67 29 20 22 08 83 08 00 |(buff ms|g) "....|
|00000ec0| c1 08 21 88 5c 6e 85 0f | 00 c1 5c 6e 21 87 22 20 |..!.\n..|..\n!." |
|00000ed0| 5b 64 69 66 66 2d 6f 6c | 64 2d 74 65 6d 70 2d 66 |[diff-ol|d-temp-f|
|00000ee0| 69 6c 65 20 64 65 6c 65 | 74 65 2d 66 69 6c 65 20 |ile dele|te-file |
|00000ef0| 64 69 66 66 2d 6e 65 77 | 2d 74 65 6d 70 2d 66 69 |diff-new|-temp-fi|
|00000f00| 6c 65 5d 20 32 5d 5d 20 | 39 20 28 23 24 20 2e 20 |le] 2]] |9 (#$ . |
|00000f10| 32 37 35 31 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |2751) (b|yte-code|
|00000f20| 20 22 c0 89 19 1a c3 20 | 89 11 83 1f 00 c4 09 21 | "..... |.......!|
|00000f30| 83 1f 00 c5 c6 c7 09 21 | c8 51 c0 09 c9 24 82 25 |.......!|.Q...$.%|
|00000f40| 00 c5 ca c0 89 c9 24 89 | 11 cb 09 21 89 12 83 45 |......$.|...!...E|
|00000f50| 00 c4 5c 6e 21 83 45 00 | c5 cc c7 5c 6e 21 c8 51 |..\n!.E.|...\n!.Q|
|00000f60| cd 5c 6e 21 5c 6e c9 24 | 82 4d 00 c5 ce cd 09 21 |.\n!\n.$|.M.....!|
|00000f70| c0 c9 24 89 12 44 9f 2a | 0e 0f 85 6c 00 d0 d1 0e |..$..D.*|...l....|
|00000f80| 12 3b 83 64 00 0e 12 82 | 6a 00 d3 d4 0e 12 d5 23 |.;.d....|j......#|
|00000f90| 5c 22 43 a4 87 22 20 5b | 6e 69 6c 20 6e 65 77 66 |\"C.." [|nil newf|
|00000fa0| 20 6f 6c 64 66 20 62 75 | 66 66 65 72 2d 66 69 6c | oldf bu|ffer-fil|
|00000fb0| 65 2d 6e 61 6d 65 20 66 | 69 6c 65 2d 65 78 69 73 |e-name f|ile-exis|
|00000fc0| 74 73 2d 70 20 72 65 61 | 64 2d 66 69 6c 65 2d 6e |ts-p rea|d-file-n|
|00000fd0| 61 6d 65 20 22 44 69 66 | 66 20 6e 65 77 20 66 69 |ame "Dif|f new fi|
|00000fe0| 6c 65 3a 20 28 22 20 66 | 69 6c 65 2d 6e 61 6d 65 |le: (" f|ile-name|
|00000ff0| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 22 29 |-nondire|ctory ")|
|00001000| 20 22 20 74 20 22 44 69 | 66 66 20 6e 65 77 20 66 | " t "Di|ff new f|
|00001010| 69 6c 65 3a 20 22 20 66 | 69 6c 65 2d 6e 65 77 65 |ile: " f|ile-newe|
|00001020| 73 74 2d 62 61 63 6b 75 | 70 20 22 44 69 66 66 20 |st-backu|p "Diff |
|00001030| 6f 72 69 67 69 6e 61 6c | 20 66 69 6c 65 3a 20 28 |original| file: (|
|00001040| 22 20 66 69 6c 65 2d 6e | 61 6d 65 2d 64 69 72 65 |" file-n|ame-dire|
|00001050| 63 74 6f 72 79 20 22 44 | 69 66 66 20 6f 72 69 67 |ctory "D|iff orig|
|00001060| 69 6e 61 6c 20 66 69 6c | 65 3a 20 22 20 63 75 72 |inal fil|e: " cur|
|00001070| 72 65 6e 74 2d 70 72 65 | 66 69 78 2d 61 72 67 20 |rent-pre|fix-arg |
|00001080| 72 65 61 64 2d 73 74 72 | 69 6e 67 20 22 44 69 66 |read-str|ing "Dif|
|00001090| 66 20 73 77 69 74 63 68 | 65 73 3a 20 22 20 64 69 |f switch|es: " di|
|000010a0| 66 66 2d 73 77 69 74 63 | 68 65 73 20 6d 61 70 63 |ff-switc|hes mapc|
|000010b0| 6f 6e 63 61 74 20 69 64 | 65 6e 74 69 74 79 20 22 |oncat id|entity "|
|000010c0| 20 22 5d 20 38 29 5d 29 | 0a 23 40 32 32 30 20 44 | "] 8)])|.#@220 D|
|000010d0| 69 66 66 20 74 68 69 73 | 20 66 69 6c 65 20 77 69 |iff this| file wi|
|000010e0| 74 68 20 69 74 73 20 62 | 61 63 6b 75 70 20 66 69 |th its b|ackup fi|
|000010f0| 6c 65 20 6f 72 20 76 69 | 63 65 20 76 65 72 73 61 |le or vi|ce versa|
|00001100| 2e 0a 55 73 65 73 20 74 | 68 65 20 6c 61 74 65 73 |..Uses t|he lates|
|00001110| 74 20 62 61 63 6b 75 70 | 2c 20 69 66 20 74 68 65 |t backup|, if the|
|00001120| 72 65 20 61 72 65 20 73 | 65 76 65 72 61 6c 20 6e |re are s|everal n|
|00001130| 75 6d 65 72 69 63 61 6c | 20 62 61 63 6b 75 70 73 |umerical| backups|
|00001140| 2e 0a 49 66 20 74 68 69 | 73 20 66 69 6c 65 20 69 |..If thi|s file i|
|00001150| 73 20 61 20 62 61 63 6b | 75 70 2c 20 64 69 66 66 |s a back|up, diff|
|00001160| 20 69 74 20 77 69 74 68 | 20 69 74 73 20 6f 72 69 | it with| its ori|
|00001170| 67 69 6e 61 6c 2e 0a 54 | 68 65 20 62 61 63 6b 75 |ginal..T|he backu|
|00001180| 70 20 66 69 6c 65 20 69 | 73 20 74 68 65 20 66 69 |p file i|s the fi|
|00001190| 72 73 74 20 66 69 6c 65 | 20 67 69 76 65 6e 20 74 |rst file| given t|
|000011a0| 6f 20 60 64 69 66 66 27 | 2e 1f 0a 28 64 65 66 61 |o `diff'|...(defa|
|000011b0| 6c 69 61 73 20 27 64 69 | 66 66 2d 62 61 63 6b 75 |lias 'di|ff-backu|
|000011c0| 70 20 23 5b 28 66 69 6c | 65 20 26 6f 70 74 69 6f |p #[(fil|e &optio|
|000011d0| 6e 61 6c 20 73 77 69 74 | 63 68 65 73 29 20 22 c0 |nal swit|ches) ".|
|000011e0| 89 19 1a c3 5c 66 21 83 | 13 00 5c 66 12 c5 5c 66 |....\f!.|..\f..\f|
|000011f0| 21 11 82 20 00 c6 5c 66 | 21 86 1d 00 c7 c8 5c 66 |!.. ..\f|!.....\f|
|00001200| 5c 22 12 5c 66 11 c9 5c | 6e 09 0e 5c 6e 23 2a 87 |\".\f..\|n..\n#*.|
|00001210| 22 20 5b 6e 69 6c 20 6f | 72 69 20 62 61 6b 20 62 |" [nil o|ri bak b|
|00001220| 61 63 6b 75 70 2d 66 69 | 6c 65 2d 6e 61 6d 65 2d |ackup-fi|le-name-|
|00001230| 70 20 66 69 6c 65 20 66 | 69 6c 65 2d 6e 61 6d 65 |p file f|ile-name|
|00001240| 2d 73 61 6e 73 2d 76 65 | 72 73 69 6f 6e 73 20 64 |-sans-ve|rsions d|
|00001250| 69 66 66 2d 6c 61 74 65 | 73 74 2d 62 61 63 6b 75 |iff-late|st-backu|
|00001260| 70 2d 66 69 6c 65 20 65 | 72 72 6f 72 20 22 4e 6f |p-file e|rror "No|
|00001270| 20 62 61 63 6b 75 70 20 | 66 6f 75 6e 64 20 66 6f | backup |found fo|
|00001280| 72 20 25 73 22 20 64 69 | 66 66 20 73 77 69 74 63 |r %s" di|ff switc|
|00001290| 68 65 73 5d 20 34 20 28 | 23 24 20 2e 20 34 33 30 |hes] 4 (|#$ . 430|
|000012a0| 33 29 20 28 6c 69 73 74 | 20 28 72 65 61 64 2d 66 |3) (list| (read-f|
|000012b0| 69 6c 65 2d 6e 61 6d 65 | 20 22 44 69 66 66 20 28 |ile-name| "Diff (|
|000012c0| 66 69 6c 65 20 77 69 74 | 68 20 62 61 63 6b 75 70 |file wit|h backup|
|000012d0| 29 3a 20 22 29 20 28 69 | 66 20 63 75 72 72 65 6e |): ") (i|f curren|
|000012e0| 74 2d 70 72 65 66 69 78 | 2d 61 72 67 20 28 72 65 |t-prefix|-arg (re|
|000012f0| 61 64 2d 73 74 72 69 6e | 67 20 22 44 69 66 66 20 |ad-strin|g "Diff |
|00001300| 73 77 69 74 63 68 65 73 | 3a 20 22 20 28 69 66 20 |switches|: " (if |
|00001310| 28 73 74 72 69 6e 67 70 | 20 64 69 66 66 2d 73 77 |(stringp| diff-sw|
|00001320| 69 74 63 68 65 73 29 20 | 64 69 66 66 2d 73 77 69 |itches) |diff-swi|
|00001330| 74 63 68 65 73 20 28 6d | 61 70 63 6f 6e 63 61 74 |tches (m|apconcat|
|00001340| 20 28 71 75 6f 74 65 20 | 69 64 65 6e 74 69 74 79 | (quote |identity|
|00001350| 29 20 64 69 66 66 2d 73 | 77 69 74 63 68 65 73 20 |) diff-s|witches |
|00001360| 22 20 22 29 29 29 20 6e | 69 6c 29 29 5d 29 0a 23 |" "))) n|il))]).#|
|00001370| 40 35 32 20 52 65 74 75 | 72 6e 20 74 68 65 20 6c |@52 Retu|rn the l|
|00001380| 61 74 65 73 74 20 65 78 | 69 73 74 69 6e 67 20 62 |atest ex|isting b|
|00001390| 61 63 6b 75 70 20 6f 66 | 20 46 49 4c 45 2c 20 6f |ackup of| FILE, o|
|000013a0| 72 20 6e 69 6c 2e 1f 0a | 28 64 65 66 61 6c 69 61 |r nil...|(defalia|
|000013b0| 73 20 27 64 69 66 66 2d | 6c 61 74 65 73 74 2d 62 |s 'diff-|latest-b|
|000013c0| 61 63 6b 75 70 2d 66 69 | 6c 65 20 23 5b 28 66 6e |ackup-fi|le #[(fn|
|000013d0| 29 20 22 c0 09 c2 5c 22 | 89 1b 83 10 00 0b c2 09 |) "...\"|........|
|000013e0| 5c 22 82 50 00 c4 c5 09 | 21 21 11 c6 09 21 1e 07 |\".P....|!!...!..|
|000013f0| c8 0e 07 21 85 24 00 0e | 07 29 86 50 00 c9 09 21 |...!.$..|.).P...!|
|00001400| 40 1e 5c 6e cb 0e 5c 6e | 21 1e 5c 66 cd ce 0e 5c |@.\n..\n|!.\f...\|
|00001410| 6e 21 21 cf 50 89 1e 10 | 47 1e 11 0e 5c 66 d2 d3 |n!!.P...|G...\f..|
|00001420| 0e 10 0e 5c 66 5c 22 d4 | 5c 22 40 50 2c 29 87 22 |...\f\".|\"@P,)."|
|00001430| 20 5b 66 69 6e 64 2d 66 | 69 6c 65 2d 6e 61 6d 65 | [find-f|ile-name|
|00001440| 2d 68 61 6e 64 6c 65 72 | 20 66 6e 20 64 69 66 66 |-handler| fn diff|
|00001450| 2d 6c 61 74 65 73 74 2d | 62 61 63 6b 75 70 2d 66 |-latest-|backup-f|
|00001460| 69 6c 65 20 68 61 6e 64 | 6c 65 72 20 66 69 6c 65 |ile hand|ler file|
|00001470| 2d 63 68 61 73 65 2d 6c | 69 6e 6b 73 20 65 78 70 |-chase-l|inks exp|
|00001480| 61 6e 64 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 6d 61 |and-file|-name ma|
|00001490| 6b 65 2d 62 61 63 6b 75 | 70 2d 66 69 6c 65 2d 6e |ke-backu|p-file-n|
|000014a0| 61 6d 65 20 62 61 6b 20 | 66 69 6c 65 2d 65 78 69 |ame bak |file-exi|
|000014b0| 73 74 73 2d 70 20 66 69 | 6e 64 2d 62 61 63 6b 75 |sts-p fi|nd-backu|
|000014c0| 70 2d 66 69 6c 65 2d 6e | 61 6d 65 20 62 61 63 6b |p-file-n|ame back|
|000014d0| 75 70 6e 61 6d 65 20 66 | 69 6c 65 2d 6e 61 6d 65 |upname f|ile-name|
|000014e0| 2d 64 69 72 65 63 74 6f | 72 79 20 64 69 72 20 66 |-directo|ry dir f|
|000014f0| 69 6c 65 2d 6e 61 6d 65 | 2d 73 61 6e 73 2d 76 65 |ile-name|-sans-ve|
|00001500| 72 73 69 6f 6e 73 20 66 | 69 6c 65 2d 6e 61 6d 65 |rsions f|ile-name|
|00001510| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 22 2e |-nondire|ctory ".|
|00001520| 7e 22 20 62 61 73 65 2d | 76 65 72 73 69 6f 6e 73 |~" base-|versions|
|00001530| 20 62 76 2d 6c 65 6e 67 | 74 68 20 73 6f 72 74 20 | bv-leng|th sort |
|00001540| 66 69 6c 65 2d 6e 61 6d | 65 2d 61 6c 6c 2d 63 6f |file-nam|e-all-co|
|00001550| 6d 70 6c 65 74 69 6f 6e | 73 20 23 5b 28 66 6e 31 |mpletion|s #[(fn1|
|00001560| 20 66 6e 32 29 20 22 c0 | 09 21 c0 5c 6e 21 56 87 | fn2) ".|.!.\n!V.|
|00001570| 22 20 5b 62 61 63 6b 75 | 70 2d 65 78 74 72 61 63 |" [backu|p-extrac|
|00001580| 74 2d 76 65 72 73 69 6f | 6e 20 66 6e 31 20 66 6e |t-versio|n fn1 fn|
|00001590| 32 5d 20 33 5d 5d 20 36 | 20 28 23 24 20 2e 20 34 |2] 3]] 6| (#$ . 4|
|000015a0| 39 38 30 29 5d 29 0a 28 | 70 72 6f 76 69 64 65 20 |980)]).(|provide |
|000015b0| 28 71 75 6f 74 65 20 64 | 69 66 66 29 29 0a |(quote d|iff)). |
+--------+-------------------------+-------------------------+--------+--------+